package com.zbs.framework.dao.permission.repository;

import com.zbs.framework.dao.permission.entity.Permission;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface PermissionRepository extends JpaRepository<Permission, Long>, JpaSpecificationExecutor<Permission> {

    Permission findByServiceNameAndName(String serviceName, String name);

    Permission findByServiceNameAndNameAndPath(String serviceName, String name,String path);
}
